<script type="text/javascript">
$(function(){
	var pg = App.soagov.flowGenPreview.ui,
		pre = pg.find('pre').text(pg.params);
	
	document.onkeydown = function(event){
		if (event.keyCode == 65 && event.ctrlKey){
			all();
			return false;
		}
	}
	
	function all(){
		var text = pre[0];
		if (document.body.createTextRange) {
			var range = document.body.createTextRange();
			range.moveToElementText(text);
			range.select();
		} else if (window.getSelection) {
			var selection = window.getSelection();
			var range = document.createRange();
			range.selectNodeContents(text);
			selection.removeAllRanges();
			selection.addRange(range);
			//if(selection.setBaseAndExtent){
			//	selection.setBaseAndExtent(text, 0, text, 1);
			//}
		}
	}
	all();
});
</script>
<pre style="width: 100%; height: 540px; margin: 0px; overflow: auto;"></pre>